
<div class="clear"></div>
<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
<div class="clear"></div>

<div class="Dg">您当前位置：<a href="{:U('home:index/index')}">首页</a>  > <a href="{:U('news:index/index')}">新闻</a> > {:NavPos(classid,' > ')} > {$title}<!--面包屑导航--></div>
<div class="news_ct" style="overflow:hidden">
	<div class="news_ct_l">
		<h1>{$title}</h1>
		<div class="dp">
        	{:stdTime(add_time)}<span>点击数(<font id="hits">0</font>)</span>
			<a href="javascript:dr_favorite();">加入收藏</a>
		</div>
		<div class="clear"></div>
		<div class="ct">
			<div class="ct_box">
			{$content}
			</div>
            <div class="tg_pages" style="text-align:center;">
				{pagetag:pager mark='p' data="content_pnum"} [pager:bar] {/pagetag:pager}
			</div>
            <p style="margin-bottom:10px">
            <strong>关键词：</strong>
            <!--输出Tag标签，这个用法只能在当前show页面使用-->
            {cms:tag}
            </p>
			<!--上下篇文章的调用，这个用法只能在当前show页面使用-->
            <p class="f14">
                <strong>上一篇：</strong>{cms:prev_page}<br>
                <strong>下一篇：</strong>{cms:next_page}
			</p>
            <div class=bshare-custom style="margin-top:15px">
                <!-- Baidu Button BEGIN -->
                <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
                <span class="bds_more"></span>
                <a class="bds_qzone"></a>
                <a class="bds_tsina"></a>
                <a class="bds_tqq"></a>
                <a class="bds_renren"></a>
                <a class="bds_t163"></a>
                <a class="shareCount"></a>
                </div>
                <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=89860593" ></script>
                <script type="text/javascript" id="bdshell_js"></script>
                <script type="text/javascript">
                document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
                </script>
                <!-- Baidu Button END -->
            </div>
		</div>
        <!--调用评论应用-->
        		<!--调用投票应用-->
                <div class="clear"></div>
        <div class="news_ct_tj">
            <div class="tit"><h4>相关新闻</h4></div>
            <ul>
                <!--此标签用于调用相关文章，tag=关键词1,关键词2，多个关键词,分隔，num=显示条数，field=显示字段-->
					{$relate type='rs'}
					<li><span>{:shortTime(relate('add_time'))}</span><a href="{:getArcUrl(relate('id'))}" title="{$relate('title')}">{$relate('title')}</a></li>
					{/$relate}
				</ul>
        </div>
	</div>
	<div class="news_ct_r">
		<div class="t_news">
			<h4>阅读排行榜</h4>
			<ul>
				{asp i=0}
				{cmstag:news table='article' where='classid in ({$catid})' field='id,title,url' order='hits' loop=9}
                <li><span class="one">{$i+1}</span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,28)']</a></li>
				{$i++}
                {/cmstag:news}
			</ul>
		</div>
		<div class="clear"></div>
        <div class="h_news">
            <h4>最新新闻</h4>
            <ul class="i_ul">
			{cmstag:news table='article' where='classid in ({$catid})' field='id,title,url' order='update_time' loop=10}
			<li><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,30)']</a></li>
			{/cmstag:news}
            </ul>
        </div>
        <div class="tw_news">
            <h4>热门Tag</h4>
            <div class="tw_tag">
				<!--此标签用于调用tag标签-->
				{cms:hottag count=30}
			</div>
        </div>
    </div>
</div>
<div class="clear"></div>
<script language="javascript">
// 加入收藏夹
function dr_favorite() {
	$.get("{:U('public:api/favorite?module_id='& module_id &'&id='& App.Req('id'))}", function(data){
		if (data == 1) {
			dr_tips("没有登录，不能收藏");
		} else if (data == 2) {
			dr_tips("文档不存在，无法收藏");
		} else if (data == 3) {
			dr_tips("更新收藏成功", 3, 1);
		} else if (data == 4) {
			dr_tips("收藏成功", 3, 1);
		}
	});
}
// 点击数+1
$(function(){
	$('#hits').load("{:U('public:api/hits?module_id='& module_id &'&id='& App.Req('id'))}&t="+ new Date().getTime());
});
</script>